from shapes import *
world = TurtleWorld()
ark = Turtle()
ark.delay=0


def sh1(t, rotate=0):
    t.rt (rotate)
    for i in range(4):
        square(t, 10)
        move(t, x=10, y=0)

def sh2(t, rotate=0):
    t.rt (rotate)
    square(t, 10)
    t.rt()
    square(t, 10)
    move(t, x=10, y=0)
    square(t, 10)
    t.rt()
    square(t, 10)

def sh3(t, rotate=0):
    t.rt(rotate)
    for i in range(3):
        square(t, 10)
        move(t, x=10, y=0)
    t.rt(180)
    move(t, x=20, y=0)
    square(t, 10)
    t.lt()
    move(t, x=10, y=0)

def sh4(t, rotate=0):
    t.rt(rotate)
    for i in range(2):
        square(t, 10)
        move(t, x=10, y=0)
    square(t, 10)
    t.rt()
    square(t, 10)
    move(t, x=10, y=0)
    
def sh5(t, rotate=0):
    t.rt(rotate)
    square(t, 10)
    t.rt()
    square(t, 10)
    move(t, x=10, y=0)
    square(t, 10)
    t.lt()
    move(t, x=10, y=0)
    square(t, 10)
    
def sh6 (t, rotate=0):
    t.rt(rotate)
    square(t, 10)
    move(t, x=10, y=0)
    square(t, 10)
    t.rt()
    square(t, 10)
    move(t, x=10, y=0)
    t.lt()
    move(t, x=10, y=0)
    square(t, 10)
    move(t, x=10, y=0)
    
def sh7(t, rotate=0):
    t.rt (rotate)
    square(t, 10)
    move(t, x=10, y=0)
    square(t, 10)
    t.lt()
    move(t, x=10, y=0)
    t.rt()
    move(t, x=10, y=0)
    t.lt()
    square(t, 10)
    t.rt()
    square(t, 10)

def ran(t):
    sh7(t,0)
    sh3(t,0)
    sh4(t,180)
    sh2(t,90)
    sh6(t,90)
    sh5(t,-90)
    sh1(t,90)
    sh6(t,0)

def screen(t):
    t.rt()
    move (t,x=700,y=0)
    t.lt()
    rect(t, 150, 250)
    
    
screen (ark)
ran (ark)
wait_for_user()    